import { Component, OnInit } from '@angular/core';
import { MultimeterService } from './multimeter.service';

@Component({
  selector: 'app-multimeter',
  templateUrl: './multimeter.component.html',
  styleUrls: ['./multimeter.component.scss']
})
export class MultimeterComponent implements OnInit {

  constructor(
    public multimeterService: MultimeterService,
  ) { }

  ngOnInit() {
    this.multimeterService.Mdata.dragStart();
    this.multimeterService.Mdata.drop();
    this.multimeterService.Mdata.redDotHalo='halo';
    this.multimeterService.Mdata.redPen='halo'; 
    this.multimeterService.Mdata.blackPen='halo';
  }

  multimeterv(){
    // if(this.dashboardService.currentSwitch!='on')return;
    this.multimeterService.Mdata.multimeterv();
  }
  ngOnDestroy() { }
  closemultimeter() {
    this.multimeterService.Mdata.closemultimeter();
  }
  multimeteroff(){
    this.multimeterService.Mdata.multimeteroff();
  }

}
